import HttpHandler from "@/handler/HttpHandler";

export default class MaterialGroupApi {
    constructor() {
        this.http = new HttpHandler();
    }

    // 获取列表
    queryListPage(data) {
        let url = '/tie-demo/materialGroup/queryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-demo/materialGroup/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-demo/materialGroup/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-demo/materialGroup/queryDetail';
        return this.http.get(url, data);
    }
   // 获取分组树列表
   queryGroupTree(data) {
    let url = '/tie-demo/materialGroup/queryGroupTree';
    return this.http.get(url, data);
}

}
